import java.util.LinkedList;
import java.util.Queue;
/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: MENG
 * Date: 2022-07-11
 * Time: 22:53
 */
public class QueueTestDemo {


    public static void main(String[] args) {
        //队列方法实现
        Queue<Integer> queue = new LinkedList<>();
        queue.offer(1);
        queue.offer(2);
        queue.offer(3);
        System.out.println(queue.peek());
        System.out.println(queue.poll());
        System.out.println(queue.peek());

    }


}


